<?php echo $this->Form->create('Paginate', array('id' => 'paginate', 'url' => $this->request->here(false), 'type' => 'post', 'inputDefaults' => array('label' => false))); ?>           				
<div id="content-header">
    <h1>User Management</h1>
</div>

<div class="container-fluid">
<div class="row-fluid">
	<div class="span12">	
                <?php
            //echo $this->element('toolbar');
            ?>	
            							
		<div class="widget-box widget-content-no-padding">
			<div class="widget-content widget-content-two">
				<table class="table table-bordered data-table table-striped wd-hover-btn">
                    <thead>
						<tr>
                            <th width="6%">STT</th>
							<th style="text-align:left" width="8%"><?php echo  __d('system', 'Email'); ?></th>
							<th style="text-align:left" width="18%"><?php echo  __d('system', 'Name'); ?></th>
                            <th width="11%"><?php echo  __d('system', 'Point'); ?></th>
							<th ><?php echo  __d('system', 'Phone'); ?></th>
                            <th ><?php echo  __d('system', 'Address'); ?></th>
						</tr>
					</thead>
					<tbody>
                    <?php   $count=1;
                            foreach ($users as $user) : ?>
							<tr> 
                                <td><?php echo $count++?></td>
                                <td><?php echo  $user['Information']['email']; ?></td>
                                <td> <?php echo $user['Information']['fullname']; ?></td>
                                <td> <?php echo $user['Information']['point']; ?></td>
                                <td> <?php echo $user['Information']['phone']; ?></td>
                                <td> <?php echo $user['Information']['address']; ?></td>                                             
    					   
						    </tr>
                                                      
           <?php endforeach?>                        
					</tbody>
            <?php foreach ($users as $user) : ?>
				<div id="<?php echo $user['Information']['id']?>" class="modal hide">
					<div class="modal-header">
						<button data-dismiss="modal" class="close" type="button">×</button>
						<h3>Alert modal</h3>
					</div>
					<div class="modal-body">
						<p>Are you sure delete “<?php echo $user['Information']['username']?>”?</p>
					</div>
					<div class="modal-footer">
						<a data-dismiss="modal" class="btn" href="#">Cancel</a>
                        <?php //echo $this->Html->link('Delete', array('plugin'=>'user','controller' => 'user','action' => 'delete', '?' => array_merge($_queries, array('keys' => array($user['User']['id'])))), array('title' => false, 'class' => 'btn btn-danger','data-dismiss='=>'modal')); ?>                        
					</div>
				</div>   
                <?php endforeach?>                  
				</table>							
			</div>
		</div>
	</div>	
</div>
<?php         
echo $this->Form->hidden('task', array('id' => 'task', 'value' => ''));
echo $this->Form->end();
?>